xl: avoid (another) uninitialised use of rc in vcpuset()
authorDario Faggioli <dario.faggioli@citrix.com>
Wed, 4 Nov 2015 12:03:31 +0000 (13:03 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 4 Nov 2015 15:05:14 +0000 (15:05 +0000)
commit08b986f88b4c4c5d19a50b9883fff2dff582c7df
tree2bdc86dcafdfbe83a4a33660767220a126351514
parent6919a7dde48bf1a9314c328bfb93a8a2f741bb80
xl: avoid (another) uninitialised use of rc in vcpuset()

Rearange the case when we check the new number of vCPUs
against the number of host pCPUs not to use rc for internal
error reporting. In fact:
 - rc was at risk of being used uninitialised;
 - rc should only be used for holding libxl error codes.

Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c